﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using DBAccess;
using Logic;
using Helper;
using WHUT;


public partial class tokenTeam_show : System.Web.UI.Page
{
    private const int CHANNEL_ID = 1;
    protected Article art;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) 
        {
            BindData();
        }
    }

    /// <summary>
    /// 绑定到rptNews
    /// </summary>
    private void BindData()
    {
        int aid = Function.IntSafeConvert(Request.QueryString["id"]);
        if (aid <= 0)
        {
            Response.Redirect("~/error.htm");
            return;
        }
        art = OP_Article.getInst().Load(aid);
        if (art == null )
        {
            Response.Redirect("~/error.htm");
            return;
        }
    }
}
